<div class="set-item">
	<div class="set-hd">
		<fieldset>
			<legend>
				<span class="title">第三方平台</span>
				<span class="description">已绑定<php>echo count($list);</php>个</span>
			</legend>
			<a href="javascript:void(0);" class="edit"><span class="label"><i class="arrow"></i>编辑</span></a>
		</fieldset>
	</div>
	<div class="set-bd">
		<ul class="bind-list">
			<volist name="list" id="vo">
				<php>$bindInfo="解除绑定后将不能通过此途径登录OceanSNS社区，确定解除吗?";</php>
				<li><span class="title">{$vo['type']}({$vo['nick']})</span>
				<php>
					$rm = session('rm');
					if($vo['openid'] == $rm['openid']) {
				</php>
					<a href="javascript:void(0);" title="当前登录，不能解绑。如需解绑，请切换其他帐号登录" class="G_btn G_btn-n">解除绑定</a>
				<php>
					} else {
				</php>
				<a href="javascript:void(0);" onclick="if(confirm('{$bindInfo}')) javascript:location.href='{:URL('home/Login/unbind',array('openid'=>$vo['openid']))}'; return false;" class="G_btn G_btn-n">解除绑定</a>
				<php>}</php>
				</li>
			</volist>
			<volist name="notbind" id="notbind">
				<li><span class="title">{$notbind}</span><a href="{:URL('home/Login/login',array('type'=>array_search($notbind,$c)))}" class="G_btn">开始绑定</a></li>
			</volist>
		</ul>
	</div>
</div>
<!--/.set-item-->